package com.mofang.ticketing.user.serve.account.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2022/5/19 20:01
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(value = "账号修改")
public class PlatformAccountUpdateReqDTO implements Serializable {
    private static final long serialVersionUID = -1270879140086081514L;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private Long id;

//    @ApiModelProperty(value = "账号类型 1=平台管理员、2=商户管理员、3=商户成员、4=项目成员")
//    private Integer accountType;

    @ApiModelProperty(value = "用户名")
    private String username;

//    @ApiModelProperty(value = "账号/手机号")
//    private String account;

    @ApiModelProperty(value = "商户ID")
    private Long merchantId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    public PlatformAccountUpdateReqDTO(Long id, String username, Long merchantId, Long roleId) {
        this.id = id;
        this.username = username;
        this.merchantId = merchantId;
        this.roleId = roleId;
    }
}